home *** CD-ROM | disk | FTP | other *** search
-
- All the possible ANSI color combinations
-
-
- Well, this is really a simple idea... but I needed it for work on other
- projects, and I thought others might find it useful as well...
-
- Nick MacDonald
- i6t4@jupiter.sun.csd.unb.ca
-
- These are the codes for various foreground/background pairs...
-
- 0 - normal
- 1 - bold
- 2 - highlight
- 3 - italic
- 4 - underline
- 7 - reverse
-
- 0m 0;1m 0;2m 0;3m 0;4m 0;7m
- 1m 0;1;2m 0;1;3m 0;1;4m 0;1;7m
- 2m 0;2;3m 0;2;4m 0;2;7m
- 3m 0;3;4m 0;3;7m
- 4m 0;4;7m
-
- 0;1;2;3m 0;1;2;4m 0;1;2;7m
- 0;1;3;4m 0;1;3;7m
- 0;1;4;7m
-
- 0;1;2;3;4m 0;1;2;3;7m
- 0;1;2;4;7m
-
- 0;1;2;3;4;7m
-
- And then there are the colors...
-
- 30-37 Set forground to system color 0-7
- 40-47 Set background to system color 0-7
- 39 Reset back to default colors
-
- 40 41 42 43 44 45 46 47
- 30 XX XX XX XX XX XX XX XX
- 31 XX XX XX XX XX XX XX XX
- 32 XX XX XX XX XX XX XX XX
- 33 XX XX XX XX XX XX XX XX
- 34 XX XX XX XX XX XX XX XX
- 35 XX XX XX XX XX XX XX XX
- 36 XX XX XX XX XX XX XX XX
- 37 XX XX XX XX XX XX XX XX
-
- Italics, Underline, and Reverse all still work as well.
-
-